<?php
namespace app\index\controller;

use think\Controller;
use think\Db;

class Index extends Controller
{
    public function test()
    {
        $res = Db::table('chat_user')->where(1)->select();
        var_dump($res);


    }
    public function testlog()
    {
        \think\Log::error('服务端 onMessage 方法');

    }

    public function index()
    {
        $fromid = input("fromid");
        $toid =  input('toid');
        $this->assign('fromid',$fromid);
        $this->assign('toid',$toid);
        return $this->fetch();
    }

}
